package com.xiaojie.mapper;

import com.xiaojie.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName RoleMapper
 * @Author jiege
 * @Date 2021/5/7 17:35
 **/
public interface RoleMapper {

    @Select("select * from sys_role r,sys_user_role ur where r.id = ur.roleid and ur.userid = #{uid}")
    public List<Role> findRoleByUid(Integer uid);
}
